package cn.maydaymemory.mastery.command;

import cn.maydaymemory.mastery.PluginMastery;
import cn.maydaymemory.mastery.annotation.CommandHandler;
import cn.maydaymemory.mastery.command.api.CommandStructure;
import cn.maydaymemory.mastery.shop.SellInventory;
import cn.maydaymemory.mastery.shop.Shop;


public class CommandMastery  extends CommandStructure {
    public CommandMastery (){
        setDescription("descriptions.Mastery", PluginMastery.getInstance().getCurrent_lang());
    }

    @CommandHandler(
            playerOnly = true,
            name = "sell",
            permission = "Mastery.player.sell",
            parameters = {}
    )
    public void shop(){
        SellInventory sl = new SellInventory(player);
        sl.openView();
    }

    @CommandHandler(
            playerOnly = true,
            name = "viewgoods",
            permission = "Mastery.player.viewgoods",
            parameters = {}
    )
    public void viewgoods(){
        Shop.viewGoodsList(player);
    }

    @Override
    protected void access() {

    }
}
